#ifndef BOMB_H

#define BOMB_H


enum BombSignals {                          /* all signals for the Bomb FSM */
    UP_SIG = STM_USER_SIG,
    DOWN_SIG,
    ARM_SIG,
    TICK_SIG
};

typedef struct TickEvtTag {
    STATE_EVENT 	super;                       /* derive from the QEvt structure */
    RAW_U8 	fine_time;                           /* the fine 1/10 s counter */
	
} TickEvt;

typedef struct Bomb4Tag {
	
    ACTIVE_EVENT_STRUCT a1;                                       /* derive from QFsm */
    RAW_U32 			timeout;                    /* number of seconds till explosion */
    RAW_U8 			code;              /* currently entered code to disarm the bomb */
    RAW_U8 			defuse;                /* secret defuse code to disarm the bomb */
	RAW_U8 			internal_priority;               
	
} Bomb4;

#endif

